package com.huangwenshuo.futurestarschoolmanagement.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.huangwenshuo.futurestarschoolmanagement.mapper.ConstantMapper;
import com.huangwenshuo.futurestarschoolmanagement.pojo.dto.Constant;
import com.huangwenshuo.futurestarschoolmanagement.service.ConstantService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huangwenshuo
 * @since 2020-11-25
 */
@Service
public class ConstantServiceImpl extends ServiceImpl<ConstantMapper, Constant> implements ConstantService {

    @Autowired
    private ConstantMapper constantMapper;

    @Override
    public Constant getOne(String file_type) {
        return constantMapper.selectOne(new QueryWrapper<Constant>().eq("label",file_type));
    }
}
